package A;

import java.util.ArrayList;
import java.util.List;

public class ListDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("jj");
        list.add("jj");
        list.add("jj");
        list.add("kk");
        list.add("jj");
        list.add(null);
        list.add(null);
        System.out.println(list);
        System.out.println(list.subList(0,2));
        System.out.println(list);
        list.add("aa");
        System.out.println(list);
    }
}
